<?php
/**
 * Nweb Framework
 *
 * This script is protected by copyright. It's use, copying, modification
 * and distribution without written consent of the author is prohibited.
 *
 * @category    source
 * @package     pl.nweb.framework.application.dispatcher
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @license     http://www.gnu.org/licenses/lgpl-3.0.txt  GNU Lesser General Public
 * @version     3.0 $Id: idispatcher.php 460 2012-01-12 16:10:20Z krzysztof.kardasz $
 * @link        http://code.google.com/p/nweb-framework/
 * @link        http://framework.nweb.pl
 */

namespace pl\nweb\framework\application\dispatcher;

/**
 * Interface dispatchera
 *
 * @category    source
 * @package     pl.nweb.framework.application.dispatcher
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @version     3.0 $Id: idispatcher.php 460 2012-01-12 16:10:20Z krzysztof.kardasz $
 */
interface iDispatcher
{
    /**
     * Konstruktor
     *
     * @param array $options parametry
     */
    public function __construct (array $options = array());

    /**
     * Realizacja żądania
     *
     * @param \pl\nweb\framework\Request $request obiekt żądania
     * @param \pl\nweb\framework\Response $response obiekt odpowiedzi
     * @return void
     */
    public function dispatch (\pl\nweb\framework\Request $request, \pl\nweb\framework\Response $response);
}